Skip to content

Fix release tag availability check - #3

Merged
rantri merged 1 commit into
mainfrom
codex/fix-release-tag-check
Jul 10, 2026
Merged

Fix release tag availability check#3
rantri merged 1 commit into
mainfrom
codex/fix-release-tag-check

Conversation

@rantri

@rantri rantri commented Jul 10, 2026

Copy link
Copy Markdown
Owner

What changed

  • query the candidate release tag without git ls-remote --exit-code
  • treat nonzero Git exits as real lookup failures
  • treat nonempty tag output as an existing immutable version

Why

The first 1.0.1 release run stopped in its pre-publication guard. An absent tag intentionally caused Git to exit with code 2, but the GitHub PowerShell runner terminated the step before the workflow could inspect that code.

No tag, GitHub Release, or NuGet package was created by the failed run.

Impact

The guard now recognizes an absent tag without producing a native-command failure while preserving the existing protection against duplicate tags.

Validation

  • exercised the corrected tag-absence guard against v1.0.1
  • release workflow passed actionlint
  • staged diff passed git diff --check

@rantri
rantri merged commit 9edd673 into main Jul 10, 2026
3 checks passed
@rantri
rantri deleted the codex/fix-release-tag-check branch July 10, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant